import React from 'react' 

import { Text , View } from '@tarojs/components'

import './comment.scss'

function actives({handleClick,activeMsg}){
  const handleInput = ()=>{
    handleClick && handleClick(activeMsg)
  }

  return (
    <View className='activs' onClick={handleInput}> 
      <Text className='active-title'>活动标题:{activeMsg.title}</Text>
      <Text className='active-username'>发起人:{activeMsg.username}</Text>
      <Text className='active-date'>活动时间:{activeMsg.date}</Text>
    </View>
  )
}




export default actives

